#测试用例类
import unittest
from selenium import webdriver
from time import sleep
from Page.Page import Page
from Page.Page2 import Page2
from Page.Page3 import Page3

class Testcase(unittest.TestCase):
    #测试固件
    def setUp(self) -> None:
        self.driver=webdriver.Edge()
        self.driver.implicitly_wait(5)
        self.driver.maximize_window()
    def tearDown(self) -> None:
        sleep(10)
        self.driver.quit()
    def test_01(self):
        po=Page(self.driver)
        sleep(3)
        po.open_url('http://localhost:8080/ykbooklist')
        po.luoji()
    def test_02(self):
        po=Page2(self.driver)
        po.open_url('http://localhost:8080/ykbooklist')
        po.luoji()
    def test_03(self):
        po=Page3(self.driver)
        po.open_url('http://localhost:8080/ykbooklist')
        po.luoji()
if __name__=='__main__':
    unittest.main()